import { createRouter, createWebHashHistory} from 'vue-router'
import Home from './components/Home/Home.vue'
import DailySongs from './components/DailySongs.vue'

const routes = [
  {
    path: '/',
    redirect:'/home'
  },{
    path: '/home', 
    component: Home,
    meta:{
      title:'主页'
    },
    children:[
      {
        path:'',
        component:()=>import('./components/Home/FindView.vue')
      },{
        path:'view1',
        component:()=>import('./components/Home/FindView.vue')
      },{
        path:'view2',
        // component:()=>import('./components/Page2/Page2.vue')
        component:()=>import('./components/Page2.vue')
      },{
        path:'view3',
        component:()=>import('./components/mine.vue')
      }
    ]
  },{
    path: '/gedanSongs',
    name: '每日推荐',
    component:DailySongs
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
